// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package resource

import (
	"testing"

	. "github.com/smartystreets/goconvey/convey"

	"code.geniusai.org/notebook-manager/pkg/entity"
)

func TestListPvc(t *testing.T) {
	Convey("list pvc", t, func() {

		manager := getTestManager()
		total, list, err := manager.ListPvc(&entity.UserListOption{UserID: "default"})
		if err != nil {
			t.Logf("list pvc error: %v", err)
		}
		for _, item := range list {
			t.Logf("pvc is: %+v", item)
		}
		So(total, ShouldBeGreaterThanOrEqualTo, 1)
		So(list, ShouldNotBeEmpty)
		So(err, ShouldBeEmpty)
	})
}
